﻿@using System.Net.Http.Headers
@using Tool.Models
@using Tool.Services
@inject ISnackbar snackbar
@inject TerminalService terminalService
<MudDialog>
    <TitleContent>
        同步数据命令
    </TitleContent>
    <DialogContent>
        @if (SendType == 1)
        {
            <MudStack>
                <MudDateRangePicker @ref="_picker" @bind-DateRange="@_dateRange" DateFormat="yyyy-MM-dd" TitleDateFormat="MMMM dd" Margin="Margin.Dense"
                                    Variant="Variant.Filled" Label="Range" ReadOnly="false">
                    <PickerActions>
                        <MudButton Class="mr-auto align-self-start" OnClick="@(() => _picker.ClearAsync())">Clear</MudButton>
                        <MudButton OnClick="@(() => _picker.CloseAsync(false))">Cancel</MudButton>
                        <MudButton Color="Color.Primary" OnClick="@(() => { _picker.CloseAsync(); GetCurls(); })">OK</MudButton>
                    </PickerActions>
                </MudDateRangePicker>
            </MudStack>
            <MudSpacer></MudSpacer>
        }

        @foreach (var item in _curls)
        {
            <MudText Align="@Align.Left" Class="mx-auto">@item</MudText>
            <MudSpacer></MudSpacer>
            <br/>
        }

    </DialogContent>
    <DialogActions>
        <MudButton Color="Color.Primary" OnClick="Close">关闭</MudButton>
    </DialogActions>
</MudDialog>

@code {
    private MudDateRangePicker _picker;
    [CascadingParameter]
    private IMudDialogInstance MudDialog { get; set; }

    [Parameter]
    public string UserCode { get; set; }


    [Parameter]
    public string GroupName { get; set; }
    /// <summary>
    /// 1: 同步历史数据
    /// 2: 按单号进行同步
    /// </summary>
    [Parameter]
    public int SendType { get; set; } = 1;

    [Parameter]
    public string EvdType { get; set; }

    [Parameter]
    public List<EvdDto> SelectedEvds { get; set; }


    [Parameter]
    public string CompanyCode { get; set; }

    [Parameter]
    public string AdmdivCode { get; set; }

    [Parameter]
    public string CheckCode { get; set; }

    [Parameter]
    public string MachineCode { get; set; }

    private void Close() => MudDialog.Close(DialogResult.Ok(true));

    private List<string> _curls = new List<string>();

    private DateRange _dateRange { get; set; } = new DateRange(new DateTime(2017, 1, 1), DateTime.Now);

    protected override async Task OnParametersSetAsync()
    {
        await base.OnParametersSetAsync();

        GetCurls();
    }

    private void GetCurls()
    {
        _curls.Clear();
        if (SendType == 1)
        {
            _curls.Add(GetEvdCurl());
            _curls.Add(GetOfflineCurl());
			_curls.Add(GetVoucherNewCurl());
        }
        else
        {
            _curls.Add(GetEvdNoCurl());
            _curls.Add(GetDeleteEvdCurl());
        }
    }

    /// <summary>
    /// 按时间重新推送
    /// </summary>
    /// <returns></returns>
    private string GetEvdCurl()
    {
        var now = DateTime.Now.ToString("yyyy-MM-dd");
        switch (GroupName)
        {
            case "托管":
                switch (EvdType)
                {
                    case "FB":
                        return $"curl -X POST \"http://192.159.84.176:8888/gwhome-office-reimburse/inner/api/invoices/batch_no_max_index/push_pay_evd\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \" {{ \\\"endDate\\\": \\\"{_dateRange.End?.ToString("yyyy-MM-dd")}\\\", \\\"payOrEvd\\\": 0, \\\"beginDate\\\": \\\"{_dateRange.Start?.ToString("yyyy-MM-dd")}\\\", \\\"userCode\\\": \\\"{UserCode}\\\" }}\";";
                    default:
                        return $"curl -X POST \"http://192.159.84.176:8888/gwhome-trip-reimburse-center-service/gwhome/trip/reimburse/send_mq_for_unit\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"[ {{ \\\"endDate\\\": \\\"{_dateRange.End?.ToString("yyyy-MM-dd")}\\\", \\\"pushType\\\": 1, \\\"startDate\\\": \\\"{_dateRange.Start?.ToString("yyyy-MM-dd")}\\\", \\\"userCode\\\": \\\"{UserCode}\\\" }}]\";";
                }
            case "云南":
                switch (EvdType)
                {
                    case "FB":
                        return $"curl -X POST \"http://192.159.84.169:8888/gwhome-office-reimburse/inner/api/invoices/batch_no_max_index/push_pay_evd\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \" {{ \\\"endDate\\\": \\\"{_dateRange.End?.ToString("yyyy-MM-dd")}\\\", \\\"payOrEvd\\\": 0, \\\"beginDate\\\": \\\"{_dateRange.Start?.ToString("yyyy-MM-dd")}\\\", \\\"userCode\\\": \\\"{UserCode}\\\" }}\";";
                    default:
                        return $"curl -X POST \"http://192.159.84.169:8888/gwhome-trip-reimburse-center-service/gwhome/trip/reimburse/send_mq_for_unit\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"[ {{ \\\"endDate\\\": \\\"{_dateRange.End?.ToString("yyyy-MM-dd")}\\\", \\\"payOrEvd\\\": 1, \\\"startDate\\\": \\\"{_dateRange.Start?.ToString("yyyy-MM-dd")}\\\", \\\"userCode\\\": \\\"{UserCode}\\\" }}]\";";
                }
                
            case "企业":
                switch (EvdType)
                {
                    case "FB":
                        return $"curl -X POST \"http://192.159.84.89:8888/gwhome-office-reimburse/inner/api/invoices/batch_no_max_index/push_pay_evd\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \" {{ \\\"endDate\\\": \\\"{_dateRange.End?.ToString("yyyy-MM-dd")}\\\", \\\"payOrEvd\\\": 0, \\\"beginDate\\\": \\\"{_dateRange.Start?.ToString("yyyy-MM-dd")}\\\", \\\"userCode\\\": \\\"{UserCode}\\\" }}\";";
                    default:
                        return $"curl -X POST \"http://192.159.84.89:8888/gwhome-trip-reimburse-center-service/gwhome/trip/reimburse/send_mq_for_unit\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"[ {{ \\\"endDate\\\": \\\"{_dateRange.End?.ToString("yyyy-MM-dd")}\\\", \\\"payOrEvd\\\": 1, \\\"startDate\\\": \\\"{_dateRange.Start?.ToString("yyyy-MM-dd")}\\\", \\\"userCode\\\": \\\"{UserCode}\\\" }}]\";";
                }
            case "上海":
                switch (EvdType)
                {
                    case "FB":
                        return $"curl -X POST \"http://172.31.56.130:8888/gwhome-office-reimburse/inner/api/invoices/batch_no_max_index/push_pay_evd\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \" {{ \\\"endDate\\\": \\\"{_dateRange.End?.ToString("yyyy-MM-dd")}\\\", \\\"payOrEvd\\\": 0, \\\"beginDate\\\": \\\"{_dateRange.Start?.ToString("yyyy-MM-dd")}\\\", \\\"userCode\\\": \\\"{UserCode}\\\" }}\";";
                    default:
                        return $"curl -X POST \"http://172.31.56.130:8888/gwhome-trip-reimburse-center-service/gwhome/trip/reimburse/send_mq_for_unit\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"[ {{ \\\"endDate\\\": \\\"{_dateRange.End?.ToString("yyyy-MM-dd")}\\\", \\\"payOrEvd\\\": 1, \\\"startDate\\\": \\\"{_dateRange.Start?.ToString("yyyy-MM-dd")}\\\", \\\"userCode\\\": \\\"{UserCode}\\\" }}]\";";
                }
                
            default:
                switch (EvdType)
                {
                    case "FB":
                        return $"curl -X POST \"http://192.159.84.169:8888/gwhome-office-reimburse/inner/api/invoices/batch_no_max_index/push_pay_evd\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \" {{ \\\"endDate\\\": \\\"{_dateRange.End?.ToString("yyyy-MM-dd")}\\\", \\\"payOrEvd\\\": 0, \\\"beginDate\\\": \\\"{_dateRange.Start?.ToString("yyyy-MM-dd")}\\\", \\\"userCode\\\": \\\"{UserCode}\\\" }}\";";
                    default:
                        return $"curl -X POST \"http://192.159.84.169:8888/gwhome-trip-reimburse-center-service/gwhome/trip/reimburse/send_mq_for_unit\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"[ {{ \\\"endDate\\\": \\\"{_dateRange.End?.ToString("yyyy-MM-dd")}\\\", \\\"payOrEvd\\\": 1, \\\"startDate\\\": \\\"{_dateRange.Start?.ToString("yyyy-MM-dd")}\\\", \\\"userCode\\\": \\\"{UserCode}\\\" }}]\";";
                }
        }
    }
    /// <summary>
    /// 云托管
    /// </summary>
    /// <returns></returns>
    private string GetOfflineCurl()
    {
        var now = DateTime.Now.ToString("yyyy-MM-dd");
        switch (GroupName)
        {
            case "托管":
                return $"curl -X POST \"http://192.159.84.176:8888/gwhome-offline-service/gwhome/inner/api/data_archive/update_archived_data_to_show\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"updateTimeList\\\": [ {{ \\\"beginTime\\\": \\\"{_dateRange.Start?.ToString("yyyy-MM-dd")}\\\", \\\"endTime\\\": \\\"{_dateRange.End?.ToString("yyyy-MM-dd")}\\\" }} ], \\\"userCode\\\": \\\"{UserCode}\\\"}}\";";
            case "云南":
                return $"curl -X POST \"http://192.159.84.169:8888/gwhome-offline-service/gwhome/inner/api/data_archive/update_archived_data_to_show\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"updateTimeList\\\": [ {{ \\\"beginTime\\\": \\\"{_dateRange.Start?.ToString("yyyy-MM-dd")}\\\", \\\"endTime\\\": \\\"{_dateRange.End?.ToString("yyyy-MM-dd")}\\\" }} ], \\\"userCode\\\": \\\"{UserCode}\\\"}}\";";
            case "企业":
                return $"curl -X POST \"http://192.159.84.89:8888/gwhome-offline-service/gwhome/inner/api/data_archive/update_archived_data_to_show\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"updateTimeList\\\": [ {{ \\\"beginTime\\\": \\\"{_dateRange.Start?.ToString("yyyy-MM-dd")}\\\", \\\"endTime\\\": \\\"{_dateRange.End?.ToString("yyyy-MM-dd")}\\\" }} ], \\\"userCode\\\": \\\"{UserCode}\\\"}}\";";
            case "上海":
                return $"curl -X POST \"http://172.31.56.130:8888/gwhome-offline-service/gwhome/inner/api/data_archive/update_archived_data_to_show\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"updateTimeList\\\": [ {{ \\\"beginTime\\\": \\\"{_dateRange.Start?.ToString("yyyy-MM-dd")}\\\", \\\"endTime\\\": \\\"{_dateRange.End?.ToString("yyyy-MM-dd")}\\\" }} ], \\\"userCode\\\": \\\"{UserCode}\\\"}}\";";
            default:
                return $"curl -X POST \"http://192.159.84.176:8888/gwhome-offline-service/gwhome/inner/api/data_archive/update_archived_data_to_show\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"updateTimeList\\\": [ {{ \\\"beginTime\\\": \\\"{_dateRange.Start?.ToString("yyyy-MM-dd")}\\\", \\\"endTime\\\": \\\"{_dateRange.End?.ToString("yyyy-MM-dd")}\\\" }} ], \\\"userCode\\\": \\\"{UserCode}\\\"}}\";";
        }
    }

    /// <summary>
    /// 按单号同步
    /// </summary>
    /// <returns></returns>
    private string GetEvdNoCurl()
    {
        var now = DateTime.Now.ToString("yyyy-MM-dd");
        switch (GroupName)
        {
            case "托管":
                switch (EvdType)
                {
                    case "FB":
                        return $"curl -X POST \"http://192.159.84.176:8888/gwhome-office-reimburse/inner/api/invoices/batch_no_max_index/push_pay_evd\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"batchNoList\\\": [\\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\"], \\\"pushType\\\": 0, \\\"userCode\\\": \\\"{UserCode}\\\" }}\";";
                    default:
                        return $"curl -X POST \"http://192.159.84.176:8888/gwhome-trip-reimburse-center-service/gwhome/trip/reimburse/send_mq_for_reim_orde\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"[ {{ \\\"reimOrderNo\\\": \\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\", \\\"userCode\\\": \\\"{UserCode}\\\" }}]\";";
                }
                
            case "云南":
                switch (EvdType)
                {
                    case "FB":
                        return $"curl -X POST \"http://192.159.84.169:8888/gwhome-office-reimburse/inner/api/invoices/batch_no_max_index/push_pay_evd\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"batchNoList\\\":  [\\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\"], \\\"pushType\\\": 0, \\\"userCode\\\": \\\"{UserCode}\\\" }}\";";
                    default:
                        return $"curl -X POST \"http://192.159.84.169:8888/gwhome-trip-reimburse-center-service/gwhome/trip/reimburse/send_mq_for_reim_orde\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"[ {{ \\\"reimOrderNo\\\": \\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\", \\\"userCode\\\": \\\"{UserCode}\\\" }}]\";";
                }
                
            case "企业":
                switch (EvdType)
                {
                    case "FB":
                        return $"curl -X POST \"http://192.159.84.89:8888/gwhome-office-reimburse/inner/api/invoices/batch_no_max_index/push_pay_evd\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"batchNoList\\\":  [\\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\"], \\\"pushType\\\": 0, \\\"userCode\\\": \\\"{UserCode}\\\" }}\";";
                    default:
                        return $"curl -X POST \"http://192.159.84.89:8888/gwhome-trip-reimburse-center-service/gwhome/trip/reimburse/send_mq_for_reim_orde\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"[ {{ \\\"reimOrderNo\\\": \\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\", \\\"userCode\\\": \\\"{UserCode}\\\" }}]\";";
                }
                
            case "上海":
                switch (EvdType)
                {
                    case "FB":
                        return $"curl -X POST \"http://172.31.56.130:8888/gwhome-office-reimburse/inner/api/invoices/batch_no_max_index/push_pay_evd\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"batchNoList\\\":  [\\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\"], \\\"pushType\\\": 0, \\\"userCode\\\": \\\"{UserCode}\\\" }}\";";
                    default:
                        return $"curl -X POST \"http://172.31.56.130:8888/gwhome-trip-reimburse-center-service/gwhome/trip/reimburse/send_mq_for_reim_orde\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"[ {{ \\\"reimOrderNo\\\": \\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\", \\\"userCode\\\": \\\"{UserCode}\\\" }}]\";";
                }
                
            default:
                switch (EvdType)
                {
                    case "FB":
                        return $"curl -X POST \"http://192.159.84.176:8888/gwhome-office-reimburse/inner/api/invoices/batch_no_max_index/push_pay_evd\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"batchNoList\\\": \\\"[{SelectedEvds.FirstOrDefault()?.BatchNo}]\\\", \\\"pushType\\\": 0, \\\"userCode\\\": \\\"{UserCode}\\\" }}\";";
                    default:
                        return $"curl -X POST \"http://192.159.84.176:8888/gwhome-trip-reimburse-center-service/gwhome/trip/reimburse/send_mq_for_reim_orde\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"[ {{ \\\"reimOrderNo\\\": \\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\", \\\"userCode\\\": \\\"{UserCode}\\\" }}]\";";
                }
                
        }
    }

    /// <summary>
    /// 按单号删除
    /// </summary>
    /// <returns></returns>
    private string GetDeleteEvdCurl()
    {
        switch (GroupName)
        {
            case "托管":
                return $"curl -X POST \"http://192.159.84.176:8888/gwhome-basic-bridge-service/send_custom_mq\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"message\\\": \\\"{{\\\\\\\"userCode\\\\\\\":\\\\\\\"{UserCode}\\\\\\\", \\\\\\\"reimburseNo\\\\\\\": \\\\\\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\\\\\", \\\\\\\"admDivCode\\\\\\\": \\\\\\\"{AdmdivCode}\\\\\\\", \\\\\\\"companyCode\\\\\\\": \\\\\\\"{CompanyCode}\\\\\\\", \\\\\\\"requestId\\\\\\\": \\\\\\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\\\\\"}}\\\", \\\"tag\\\": \\\"{UserCode}\\\", \\\"topic\\\": \\\"gwhome-reimburse-cancel-topic\\\" }}\";";

            case "云南":
                return $"curl -X POST \"http://192.159.84.169:8888/gwhome-basic-bridge-service/send_custom_mq\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"message\\\": \\\"{{\\\\\\\"userCode\\\\\\\":\\\\\\\"{UserCode}\\\\\\\", \\\\\\\"reimburseNo\\\\\\\": \\\\\\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\\\\\", \\\\\\\"admDivCode\\\\\\\": \\\\\\\"{AdmdivCode}\\\\\\\", \\\\\\\"companyCode\\\\\\\": \\\\\\\"{CompanyCode}\\\\\\\", \\\\\\\"requestId\\\\\\\": \\\\\\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\\\\\"}}\\\", \\\"tag\\\": \\\"{UserCode}\\\", \\\"topic\\\": \\\"gwhome-reimburse-cancel-topic\\\" }}\";";

            case "企业":
                return $"curl -X POST \"http://192.159.84.89:8888/gwhome-basic-bridge-service/send_custom_mq\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"message\\\": \\\"{{\\\\\\\"userCode\\\\\\\":\\\\\\\"{UserCode}\\\\\\\", \\\\\\\"reimburseNo\\\\\\\": \\\\\\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\\\\\", \\\\\\\"admDivCode\\\\\\\": \\\\\\\"{AdmdivCode}\\\\\\\", \\\\\\\"companyCode\\\\\\\": \\\\\\\"{CompanyCode}\\\\\\\", \\\\\\\"requestId\\\\\\\": \\\\\\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\\\\\"}}\\\", \\\"tag\\\": \\\"{UserCode}\\\", \\\"topic\\\": \\\"gwhome-reimburse-cancel-topic\\\" }}\";";

            case "上海":
                return $"curl -X POST \"http://172.31.56.130:8888/gwhome-basic-bridge-service/send_custom_mq\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"message\\\": \\\"{{\\\\\\\"userCode\\\\\\\":\\\\\\\"{UserCode}\\\\\\\", \\\\\\\"reimburseNo\\\\\\\": \\\\\\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\\\\\", \\\\\\\"admDivCode\\\\\\\": \\\\\\\"{AdmdivCode}\\\\\\\", \\\\\\\"companyCode\\\\\\\": \\\\\\\"{CompanyCode}\\\\\\\", \\\\\\\"requestId\\\\\\\": \\\\\\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\\\\\"}}\\\", \\\"tag\\\": \\\"{UserCode}\\\", \\\"topic\\\": \\\"gwhome-reimburse-cancel-topic\\\" }}\";";
            default:
                return $"curl -X POST \"http://192.159.84.176:8888/gwhome-basic-bridge-service/send_custom_mq\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"message\\\": \\\"{{\\\\\\\"userCode\\\\\\\":\\\\\\\"{UserCode}\\\\\\\", \\\\\\\"reimburseNo\\\\\\\": \\\\\\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\\\\\", \\\\\\\"admDivCode\\\\\\\": \\\\\\\"{AdmdivCode}\\\\\\\", \\\\\\\"companyCode\\\\\\\": \\\\\\\"{CompanyCode}\\\\\\\", \\\\\\\"requestId\\\\\\\": \\\\\\\"{SelectedEvds.FirstOrDefault()?.BatchNo}\\\\\\\"}}\\\", \\\"tag\\\": \\\"{UserCode}\\\", \\\"topic\\\": \\\"gwhome-reimburse-cancel-topic\\\" }}\";";

        }
    }

    /// <summary>
    /// 通知云伴侣同步数据
    /// </summary>
    /// <returns></returns>
    private string GetVoucherNewCurl()
    {
        switch (GroupName)
        {
            case "上海":
                return $"curl -X POST \"http://172.31.56.130:8888/gwhome-websocket-voucher/websocket/send\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"loginId\\\": \\\"{CheckCode}_{MachineCode}\\\", \\\"msg\\\":  \\\"VOUCHER_NEW\\\" }}\";";
            default:
                return $"curl -X POST \"http://192.159.84.204:8888/gwhome-websocket-voucher/websocket/send\" -H \"accept: application/json;charset=UTF-8\" -H \"Content-Type: application/json\" -d \"{{ \\\"loginId\\\": \\\"{CheckCode}_{MachineCode}\\\", \\\"msg\\\":  \\\"VOUCHER_NEW\\\" }}\";";

        }
    }

}
